﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using entities;

namespace logic
{
    public class HeroLogic
    {
        public int GetTotalDamage(Hero hero)
        {
            int totalDamage = 0;

            Bag bag = hero.Bag;
            List<AbstractWeapon> weapons = bag.Weapons;
            for (int i = 0; i < weapons.Count; i++)
            {
                AbstractWeapon weapon = weapons[i];
                totalDamage += weapon.Damage;
            }

            return totalDamage;
        }
    }
}
